<?php

/**
 * @author 赵殿有
 *
 */
class YamlAction extends Action {
	function org() {
		Vendor('spyc');
		//$spyc = new Spyc();
		$yaml = Spyc::YAMLLoad(APP_PATH . 'sample/org.yaml.php');
		$this->assign('yaml', $yaml);
		$this->display();
	}
	
	function ref() {
		Vendor('spyc');
		//$spyc = new Spyc();
		$yaml = Spyc::YAMLLoad(APP_PATH . 'sample/ref.yaml.php');
		$this->assign('yaml', $yaml);
		$this->display('org');
	}
}

?>